Integrand size = 23, antiderivative size = 43 \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{\sqrt {a+b} f} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {4219, 385, 213} \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f \sqrt {a+b}} \]
[In]
[Out]
Rule 213
Rule 385
Rule 4219
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{\left (-1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\sec (e+f x)\right )}{f} \\ & = \frac {\text {Subst}\left (\int \frac {1}{-1-(-a-b) x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{f} \\ & = -\frac {\text {arctanh}\left (\frac {\sqrt {a+b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{\sqrt {a+b} f} \\ \end{align*}
Time = 0.11 (sec) , antiderivative size = 86, normalized size of antiderivative = 2.00 \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b-a \sin ^2(e+f x)}}{\sqrt {a+b}}\right ) \sqrt {a+2 b+a \cos (2 e+2 f x)} \sec (e+f x)}{\sqrt {2} \sqrt {a+b} f \sqrt {a+b \sec ^2(e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(246\) vs. \(2(37)=74\).
Time = 1.22 (sec) , antiderivative size = 247, normalized size of antiderivative = 5.74
method | result | size |
default | \(-\frac {\left (\ln \left (\frac {2 \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sqrt {a +b}\, \cos \left (f x +e \right )+2 \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sqrt {a +b}-2 \cos \left (f x +e \right ) a +2 b}{\sqrt {a +b}\, \left (1+\cos \left (f x +e \right )\right )}\right )+\ln \left (-\frac {4 \left (\sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sqrt {a +b}\, \cos \left (f x +e \right )+\sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \sqrt {a +b}+\cos \left (f x +e \right ) a +b \right )}{-1+\cos \left (f x +e \right )}\right )\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )^{2}}{\left (1+\cos \left (f x +e \right )\right )^{2}}}\, \left (\sec \left (f x +e \right )+1\right )}{2 f \sqrt {a +b}\, \sqrt {a +b \sec \left (f x +e \right )^{2}}}\) | \(247\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 140, normalized size of antiderivative = 3.26 \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=\left [\frac {\log \left (\frac {2 \, {\left (a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {a + b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + a + 2 \, b\right )}}{\cos \left (f x + e\right )^{2} - 1}\right )}{2 \, \sqrt {a + b} f}, \frac {\sqrt {-a - b} \arctan \left (\frac {\sqrt {-a - b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{a + b}\right )}{{\left (a + b\right )} f}\right ] \]
[In]
[Out]
\[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=\int \frac {\csc {\left (e + f x \right )}}{\sqrt {a + b \sec ^{2}{\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=\int { \frac {\csc \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right )^{2} + a}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 305 vs. \(2 (37) = 74\).
Time = 0.63 (sec) , antiderivative size = 305, normalized size of antiderivative = 7.09 \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=-\frac {\frac {\log \left ({\left | -\sqrt {a + b} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a + b} + \sqrt {a + b} \right |}\right )}{\sqrt {a + b}} - \frac {\log \left ({\left | -\sqrt {a + b} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a + b} - \sqrt {a + b} \right |}\right )}{\sqrt {a + b}} - \frac {\log \left ({\left | -{\left (\sqrt {a + b} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a + b}\right )} {\left (a + b\right )} + \sqrt {a + b} {\left (a - b\right )} \right |}\right )}{\sqrt {a + b}}}{2 \, f \mathrm {sgn}\left (\cos \left (f x + e\right )\right )} \]
[In]
[Out]
Timed out. \[ \int \frac {\csc (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx=\int \frac {1}{\sin \left (e+f\,x\right )\,\sqrt {a+\frac {b}{{\cos \left (e+f\,x\right )}^2}}} \,d x \]
[In]
[Out]